import WxParse from "../../templates/wxParse/wxParse"
const app = getApp()

Page({
  data: {
    msg: `<div>
      <h1>hello weapp!</h1>
      <h3 style="color: red;">hello weapp!</h3>
      <p>
        <img src="https://www.baidu.com/img/pc_9c5c85e6b953f1d172e1ed6821618b91.png" alt="">
      </p>
      <p>
        <img src="https://www.baidu.com/img/pc_9c5c85e6b953f1d172e1ed6821618b91.png" alt="">
      </p>
      <p>
        <img src="https://www.baidu.com/img/pc_9c5c85e6b953f1d172e1ed6821618b91.png" alt="">
      </p>
      <p>
        <img src="https://www.baidu.com/img/pc_9c5c85e6b953f1d172e1ed6821618b91.png" alt="">
      </p>
      <ol>
        <li>item1</li>
        <li>item1</li>
        <li>item1</li>
        <li>item1</li>
      </ol>
      <hr>
      <ul>
        <li>item1</li>
        <li>item1</li>
        <li>item1</li>
        <li>item1</li>
      </ul>
    </div>
    `
  },
  onLoad(query) {
    const self = this
    WxParse.wxParse('article', 'html', self.data.msg, self, 5);
  }
})
